﻿using furion.blog.Domain.Shared.ValidateAttribute;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.Shared.Dto.Member
{
    /// <summary>
    /// 会员绑定 手机号码表单
    /// </summary>
    public class MemberPhoneBindDto
    {
        public long MemberId { get; set; }

        [JsonProperty(PropertyName = "phone")]
        [Required(ErrorMessage = "请填写手机号码")]
        [PhoneValidateAttribute(ErrorMessage = "手机号码有误")]
        public string Phone { get; set; } = string.Empty;

        [JsonProperty(PropertyName = "captcha")]
        [Required(ErrorMessage = "请填写验证码")]
        public string Captcha { get; set; } = string.Empty;
    }
}
